Skip to content

fix: installer and launcher hardening across platforms#63

Merged
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/installer-launcher-batch
Jul 5, 2026
Merged

fix: installer and launcher hardening across platforms#63
Aayam Bansal (aayambansal) merged 1 commit into
mainfrom
fix/installer-launcher-batch

Conversation

@aayambansal

Copy link
Copy Markdown
Member

Fixes #44. Fixes #45. Fixes #47. Fixes #48. Fixes #49.

One PR for the five installer/launcher defects from the install-flow audit:

install script (both copies kept in sync, verified with diff):

build script: linux platform packages now declare libc (glibc/musl), so npm stops installing all four x64 variants (~750 MB) on every linux host (#47).

bin wrapper: platform-package selection now ranks candidates (matching libc first, exact name before -baseline/-musl suffixes) instead of trusting readdirSync enumeration order, which is filesystem-dependent (#47).

launcher (npx synsci):

Verified: bash -n on both script copies, node --check on the wrapper and launcher, backend typecheck, and a sandboxed installer run (fake HOME, GITHUB_ACTIONS=true with no GITHUB_PATH) that previously crashed and now completes.

- install: move openscience.exe on Windows (the archive entry has the
  .exe suffix, so the mv could never succeed), add curl --fail plus an
  explicit empty-download check, guard the version fetch so an
  unreachable GitHub prints a real error instead of dying silently, and
  only append to GITHUB_PATH when it is actually set
- build: stamp libc on the linux platform packages so npm stops
  installing all four x64 variants on every linux host
- bin wrapper: rank platform-package variants (right libc, exact name
  first) instead of trusting filesystem enumeration order
- launcher: resolve openscience.cmd via the npm prefix on Windows and
  run it through a shell, skip the bash-installer fallback there, and
  only treat an atlas binary as ours when @synsci/atlas owns it
@vercel

vercel Bot commented Jul 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openscience Ready Ready Preview, Comment Jul 5, 2026 11:11am

Request Review

@aayambansal Aayam Bansal (aayambansal) merged commit d871991 into main Jul 5, 2026
9 checks passed
@aayambansal Aayam Bansal (aayambansal) deleted the fix/installer-launcher-batch branch July 5, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment